import request from '@/utils/request'

// 查询WBS计划列表
export function listWbsPlan(query) {
  return request({
    url: '/wbs/wbsPlan/list',
    method: 'get',
    params: query
  })
}

// 查询WBS计划详细
export function getWbsPlan(wbsId) {
  return request({
    url: '/wbs/wbsPlan/' + wbsId,
    method: 'get'
  })
}

// 新增WBS计划
export function addWbsPlan(data) {
  return request({
    url: '/wbs/wbsPlan',
    method: 'post',
    data: data
  })
}

// 修改WBS计划
export function updateWbsPlan(data) {
  return request({
    url: '/wbs/wbsPlan',
    method: 'put',
    data: data
  })
}

// 删除WBS计划
export function delWbsPlan(wbsId) {
  return request({
    url: '/wbs/wbsPlan/' + wbsId,
    method: 'delete'
  })
}
